package fr.norsys.mapper.console.model;
/**
 * This class contains the constants of the application
 * @author jeff
 * @version 0.1
 */
public class ConsoleCst {
	public final static String CONNECTIONS_PAGE_FORWARD = "connections";
	public final static String CONNECTION_REQUEST_BEAN = "connection";
	public final static String CONNECTIONS_SESSION_BEAN = "connections";
	public static final String APPLICATION_SESSION_BEAN = "application";
	public final static String APPLICATIONS_SESSION_BEAN = "applications";
	public final static String APPLICATIONS_PAGE_FORWARD = "applications";
	public final static String GENERAL_PAGE_FORWARD = "general";
	public final static String APPLICATION_REQUEST_BEAN = "application";
	public final static String INPUT_ATTRIBUTE_TYPE = "0";
	public final static String OUTPUT_ATTRIBUTE_TYPE = "1";
	public final static String INPUT_OUTPUT_ATTRIBUTE_TYPE = "2";
	public final static String SEARCH_MAPPER_TYPE = "search";
	public final static String ADD_MAPPER_TYPE = "add";
	public final static String MODIFY_MAPPER_TYPE = "modify";
	public final static String DELETE_MAPPER_TYPE = "delete";
	public final static String BASE_DIR_PATH = 	System.getProperty("user.dir");
	public final static String MIN_POOL_SIZE_DEFAULT_VALUE = "10";
	public final static String MAX_POOL_SIZE_DEFAULT_VALUE = "30";
	public final static String TIMEOUT_POOL_DEFAULT_VALUE = "2000";
	public static final String CURRENT_APPLICATION = "currentApplication";
	public final static String RESOURCE_VALID = "0";
	public final static String CONNECTION_NOT_VALID = "1";
	public final static String RESOURCE_NOT_VALID = "2";
	public final static String APPLICATIONS_DIRECTORY = "applications-directory";
	public final static String CONNECTIONS_DIRECTORY = "connections-directory";
	public static final String APPLICATION_ID = "applicationId";
	public static final String NODE_LIST = "nodeList";
	
	/* export */
	public static final String EXPORT_PAGE_FORWARD = "export";
	public static final String EXPORT_REQUEST_BEAN = "export";

	/* application state flag */
	public static final String IS_APPLICATION_MODIFIED = "isApplicationModified";
	public static final String APPLICATION_MODIFIED = "true";
	public static final String APPLICATION_NOT_MODIFIED = "false";
	
	/* connection state flag */
	public static final String IS_CONNECTION_MODIFIED = "isApplicationModified";
	public static final String CONNECTION_MODIFIED = "true";
	public static final String CONNECTION_NOT_MODIFIED = "false";
	
	/* Resource definition */
	public final static String RESOURCES_PAGE_FORWARD = "resources";
	public static final String RESOURCES_REQUEST_BEAN = "resources";
	public static final String RESOURCE_REQUEST_BEAN = "resource";
	public final static String RESOURCE_PAGE_FORWARD = "resource";
	public static final String TYPES_SESSION_BEAN = "types";
	public static final String RESOURCE_TYPE_SEARCH = "search";
	public static final String RESOURCE_TYPE_SEARCH_VALUE = "Recherche";
	public static final String RESOURCE_TYPE_ADD = "add";
	public static final String RESOURCE_TYPE_ADD_VALUE = "Ajout";
	public static final String RESOURCE_TYPE_MODIFY = "modify";
	public static final String RESOURCE_TYPE_MODIFY_VALUE = "Modification";
	public static final String RESOURCE_TYPE_DELETE = "delete";
	public static final String RESOURCE_TYPE_DELETE_VALUE = "Suppression";
	public static final String RESOURCE_SAVED_PAGE_FORWARD = "savedResource";
	public static final String RESOURCES_SESSION_BEAN = "resources";
	public static final String CURRENT_RESOURCE = "currentResource";
	public static final String CURRENT_RESOURCE_ID = "currentResourceId";
	
	/* Variable definition */
	public final static String VARIABLE_REQUEST_BEAN = "variable";
	public final static String VARIABLES_SESSION_BEAN = "variables";
	
	/* Attribute definition */
	public static final String ATTRIBUTE_REQUEST_BEAN = "attribute";
	public static final String ATTRIBUTE_PAGE_FORWARD = "attribute";
	public static final String ATTRIBUTES_SESSION_BEAN = "attributes";	
	public static final String CURRENT_ATTRIBUTE = "currentAttribute";
	public static final String CURRENT_ATTRIBUTE_ID = "currentAttributeId";
	public static final int NOT_MANDATORY_STATUS = 0;
	public static final int MANDATORY_STATUS = 1;
	public static final int UNKNOWN_STATUS = 2;
	
	/* Filter definition */
	public final static String FILTER_REQUEST_BEAN = "filter";
	public final static String FILTER_SESSION_BEAN = "filters";
	public final static String INTFILTER_SESSION_BEAN = "intFilters";
	public final static String INTFILTER = "intFilter";
	public final static String GLOBALFILTER = "globalFilter";
	
	/* Identifiant definition */
	public static final String ID_REQUEST_BEAN = "identifiant";
	public static final String IDS_SESSION_BEAN = "identifiants";
	public static final String CURRENT_ID = "currentIdentifiant";
	public static final String ID_COMP_REQUEST_BEAN = "idComponent";
	public static final String EXPORT_PATH = "/src/webapp/maps";		

	public static final String MAPPING_ENCODING = "ISO-8859-1";		
}
